<?php /* Smarty version 2.6.16, created on 2007-05-16 23:38:58
         compiled from NewMessage.tpl */ ?>
<?php if ($this->_tpl_vars['errors']): ?>
<div id="errors">
<?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
<span class="error"><?php echo $this->_tpl_vars['error']; ?>
</span><br>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['formResponse']): ?>
<div id="formResponse"><?php echo $this->_tpl_vars['formResponse']; ?>
</div>
<h3><a href="/<?php echo $this->_tpl_vars['request']->ownerName; ?>
/CP/Messages/new">Try sending another message?</a></h3>
<?php else: ?>
<h3>New Message</h3>
<form <?php echo $this->_tpl_vars['newMessage']['attributes']; ?>
>
<table align="center" cellspacing="3" width="100%">
	<tr>
        <td align="right" valign="top">
        	<?php echo $this->_tpl_vars['newMessage']['title']['label']; ?>

        </td>
        <td valign="top" align="left">
            <?php echo $this->_tpl_vars['newMessage']['title']['html']; ?>

        </td>
	</tr>
	<tr>
        <td align="right" valign="top">
        	<?php echo $this->_tpl_vars['newMessage']['to']['label']; ?>

        </td>
        <td valign="top" align="left">
            <?php echo $this->_tpl_vars['newMessage']['to']['html']; ?>
 <?php if ($this->_tpl_vars['newMessage']['friendsList']): ?> OR <?php echo $this->_tpl_vars['newMessage']['friendsList']['html'];  endif; ?>
        </td>
	</tr>
	<tr>
        <td align="right" valign="top">
        	<?php echo $this->_tpl_vars['newMessage']['message']['label']; ?>

        </td>
        <td valign="top" align="left">
            <?php echo $this->_tpl_vars['newMessage']['message']['html']; ?>

        </td>
	</tr>
	<tr>
    	<td valign="top" align="center" colspan="2">
    	<?php echo $this->_tpl_vars['newMessage']['btnSubmit']['html']; ?>

        </td>
	</tr>
</table>
</form>
<?php endif; ?>